<projects>
	{foreach from=$projects item=project}
	<project id="{$project.pid}" name="{$project.name}">
		<tasks>
			{foreach from=$project.tasks item=task key=tid}
			<task id="{$tid}" images="{$task.images}" name="{$task.name}" author="{$task.author}" date="{$task.date}" finish_date="{$task.finish_date}" finish_date_left="{$task.finish_date_left}" dateago="{$task.dateago}" state_date="{$task.status_date}" desc="{$task.desc}" important="{$task.important}" tasktype="{$task.tasktype}" reproted="{$task.reported}" pointTypeID="{$task.pointTypeID}" point="{$task.point}" daily="{$task.daily}">
				<users>
					{foreach from=$task.users item=user}
					<user id="{$user.id}" fbuid="{$user.fbuid}" owner="{$user.owner}" name="{$user.name}" image="{$user.image}" totaltaskscount="{$user.totaltaskscount}" todaydonetaskscount="{$user.donetaskscount}" />
					{/foreach}
				</users>
			</task>
			{/foreach}
		</tasks>
	</project>
	{/foreach}
</projects>